# -*- coding: utf-8 -*-
# @Time    : 2021/3/27 9:43
# @Author  : 夏思毅
# @Email   : 2739124228@qq.com
# @File    : 3-26容器作业.py
# @Software: PyCharm
# 作业###########
print("欢迎参加登仙大会".center(80,'-'))
name = input("何门何派：")
password = input("出示信诀：")
k = {'陈平安': ['剑修', '自倒悬山而来', '起剑，善'],
     '李牧之': ['散修', '自武当山而来', '太上台星，应变无停']}
while name == 'root' and password == '123456':
        print("一颗灵石即可查看本次大会报名详情".center(60,'*'))
        print("十颗灵石即可参加本次大会报名".center(60,'*'))
        print("输入洋文quit即可退出本次大会".center(60,'*'))
        a = input("请选择你要投入的灵石（1或10）：")
        if 'quit' in a:
            print("已退出本次升仙大会")
            break
        elif int(a) == 10:
            l = input("名：")
            s = input("修何：")
            b = input("自何山来：")
            z = input("参赛宣言：")
            p = dict()
            p[l] = [s,b,z]
            k.update(p)
            print("已报名成功！")
            for i in k.items():
                print(f"姓名：{i[0]}".rjust(20," "), f"修:{i[1][0]}".rjust(20," "), f"拜山何名：{i[1][1]}".rjust(20," "), f"参赛宣言:{i[1][2]}".rjust(40," "))
        elif int(a) == 1 :
            # print(k.items())
            for i in k.items():
                print(f"姓名：{i[0]}".rjust(20," "),f"修:{i[1][0]}".rjust(20," "),f"拜山何名：{i[1][1]}".rjust(20," "),f"参赛宣言:{i[1][2]}".rjust(40," "))
        else:
            print("此人瞎了")
            break
else:
    print("汝派不在本次大会邀请中，还请见谅")